﻿
namespace PS.DataTypes
{
    /// <summary>
    /// Represents the connection between two nodes.
    /// </summary>
    public interface IConnection
    {
        /// <summary>
        /// Gets the non-negative cost of the connection.
        /// </summary>
        float Cost { get; }

        /// <summary>
        /// Gets the node that this connection came from.
        /// </summary>
        int FromNode { get; }

        /// <summary>
        /// Gets the node that this connection leads to.
        /// </summary>
        int ToNode { get; }
    }
}
